package com.beta.auth.constants;

/**
 * @author zdwang
 * @description
 */
public class BusinessConstants {
    private BusinessConstants(){}

    /**
     * 调用接口返回0表示成功
     */
    public static final int SUCCESS_CODE = 0;

    public static final String AES_KEY = "12345qazwsx67890";

    public static final String JSAPI_SIGNATURE = "jsapi_ticket=%s&noncestr=%s&timestamp=%s&url=%s";

    public static final String SYSTEM_ERROR_MSG = "哎呀，出错啦！(⊙︿⊙)";

    public static final String LIMIT_CODE = "10000";

    /**
     * 客户端参数非法
     */
    public static final String PARAMS_INVALID_CODE = "10001";

    /**
     * 客户端参数错误
     */
    public static final String PARAMS_ERROR_CODE = "10002";

    /**
     * 后端缓存已过期，会话失效
     */
    public static final String SESSION_EXPIRED_CODE = "20001";

    /**
     * 微信相关错误
     */
    public static final String WX_ERROR_CODE = "30001";

    /**
     * RPC接口相关错误
     */
    public static final String RPC_ERROR_CODE = "40001";

    /**
     * 阿里网关相关错误
     */
    public static final String ALI_GATEWAY_ERROR_CODE = "40001";


    /**
     * 其他未知错误
     */
    public static final String UNKNOWN_ERROR_CODE = "99999";
}
